﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using GeneFolio.ViewModel;

namespace GeneFolio
{
	/// <summary>
	/// Interaction logic for LoginForm.xaml
	/// </summary>
	public partial class LoginForm : Window
	{
		public LoginForm()
		{
			InitializeComponent();
            LoginViewModel loginViewModel = new LoginViewModel();
            loginViewModel.OnDialgoResult += new Delegats.DialogResult(GetResult);
            loginViewModel.OnChangeCurType += new Delegats.ChangeCurType(GetCurType);
            this.DataContext = loginViewModel;
		}

        private void GetResult(bool flag)
        {
            this.DialogResult = flag;
        }

        private void GetCurType(Cursor cur)
        {
            this.Cursor = cur;
        }
	}
}
